package com.csun.cmny.provider.device.card.entity;

import io.netty.channel.Channel;
import io.netty.util.AttributeKey;

import java.util.concurrent.ConcurrentHashMap;

/**
 * @Auther: chisj chisj@foxmal.com
 * @Date: 2019-12-04 13:23
 * @Description:
 */
public class CardConstant {

    // 设备-通道 map
    public static ConcurrentHashMap<String, Channel> CARD_CHANNEL_MAP = new ConcurrentHashMap<>();

    /**
     * netty channel attribute key -- controller card
     */
    public static final AttributeKey<CardDataEntity> CARD_CHANNEL_KEY = AttributeKey.valueOf("cmny:device:controller:card");
}
